|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.databases.configurations.DatabaseConfiguration
public abstract class DatabaseConfiguration
A configuration for a database connection factory.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.vtp.framework.databases.configurations.DatabaseConstants |
|---|
NAME_COLUMN, NAME_COMPARISON, NAME_CRITERIA, NAME_DATABASE, NAME_DRIVER, NAME_JDBC_DATABASE, NAME_JNDI_DATABASE, NAME_MAPPING, NAME_NAME, NAME_PASSWORD, NAME_QUERY, NAME_RESULT_CARDINALITY, NAME_RESULT_LIMIT, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TABLE, NAME_TIMEOUT, NAME_TYPE, NAME_URI, NAME_URL, NAME_USERNAME, NAME_VALUE, NAMESPACE_URI |
| Constructor Summary | |
|---|---|
DatabaseConfiguration()
Creates a new DatabaseConfiguration. |
|
| Method Summary | |
|---|---|
void |
addTable(DatabaseTableConfiguration table)
Adds a table to the end of this database. |
java.lang.String |
getName()
Returns the name of this configuration. |
java.lang.String |
getPassword()
Returns the password to connect with. |
DatabaseTableConfiguration[] |
getTables()
Returns the tables defined in the database. |
java.lang.String |
getUsername()
Returns the user name to connect with. |
void |
load(org.w3c.dom.Element configurationElement)
Loads the configuration information from the specified XML element. |
void |
removeTable(DatabaseTableConfiguration table)
Removes a table from this database. |
void |
save(org.w3c.dom.Element configurationElement)
Saves the configuration information into the supplied XML element. |
void |
setName(java.lang.String name)
Sets the name of this configuration. |
void |
setPassword(java.lang.String password)
Sets the password to connect with. |
void |
setUsername(java.lang.String username)
Sets the user name to connect with. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseConfiguration()
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of this configuration.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username - The user name to connect with.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - The password to connect with.public DatabaseTableConfiguration[] getTables()
public void addTable(DatabaseTableConfiguration table)
table - The table to add.public void removeTable(DatabaseTableConfiguration table)
table - The table to remove.public void load(org.w3c.dom.Element configurationElement)
IConfiguration
load in interface IConfigurationconfigurationElement - The element to load the configuration from.public void save(org.w3c.dom.Element configurationElement)
IConfiguration
save in interface IConfigurationconfigurationElement - The element to save the configuration to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||